package com.yurun.loginmodule.mapper;

import com.yurun.commonapi.pojo.Menu;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface MenuMapper {
    /**
     * 根据menuId
     */
    List<Menu> getMenuList(int menuId);

    /**
     * 根据角色id
     */
    List<Integer> getMenuListByRole(int roleId);

    List<Integer> getAllMenuId();
}
